package com.tjbank.cssys.framework.base.dto;


import com.tjbank.cssys.framework.base.enums.CallType;
import com.tjbank.cssys.framework.base.util.GeneratIDUtil;

/**
 * Copyright © 天阳宏业科技股份有限公司 - All Rights Reserved
 *
 * @description: 为动态页面配置增加的公用DTO
 * @author: <a href="mailto:guzheng01@tansun.com.cn>Joey Gu</a>
 * @date: 2020-06-05 15:34
 **/
public class DynamicPageDTO extends CommonDTO {
    
    /**❤❤❤❤❤*/
    private static final long serialVersionUID = 1L;
    /**
     * 请求流水号
     */
    private String gid;
    /**
     * 时间戳
     */
    private long timestamp;

    /**
     * 接口调用方式 MOCK or REAL
     * 默认为REAL调用
     */
    private CallType callType = CallType.REAL;

    public DynamicPageDTO() {
        this.gid = GeneratIDUtil.getUUId();
        this.timestamp = System.currentTimeMillis();
    }

    public String getGid() {
        return gid;
    }

    public void setGid(String gid) {
        this.gid = gid;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public CallType getCallType() {
        return callType;
    }

    public void setCallType(CallType callType) {
        this.callType = callType;
    }

}
